<?php

class MyWebModule extends CWebModule
{
	var $module_id;
	var $adminmenu_id;
	function init()
	{
		$this->module_id = $this->getId();
		$adminmenu = adminmenu::model()->find(array("condition"=>"route = '".$this->module_id."'"));
		$this->adminmenu_id = $adminmenu->id;
	}
}
